
package com.uuah.server.api.transport;

import com.uuah.server.api.IUuahEvent;
import com.uuah.server.api.IUuahMessage;
import com.uuah.server.exception.transport.DispatchException;

/**
 * Define generic methods for dispatching events. The exact behaviour of the
 * action is defined by the implementing class.
 *
 * <p>update record:updator，update time，update content and version</p>
 * @author <a href="jonny_quan@hotmail.com">jonny</a>
 * @date 2009 2009-3-27 上午12:13:19
 * @version 1.0.0
 */
public interface IMessageDispatching {
	long RECEIVE_WAIT_INDEFINITELY = 0;
	long RECEIVE_NO_WAIT = -1;

	void dispatch(IUuahEvent event) throws DispatchException;

	IUuahMessage send(IUuahEvent event) throws DispatchException;

}
